<?php 

namespace Admin\Model;
use Think\Model;

/**
 * 友情链接
 * @author guiguoershao@163.com
 */

class FriendlinkModel extends Model {
	protected $_validate = array(
        array( 'title', '', '已经存在该标题', self::MUST_VALIDATE, 'unique' ),
    );

    protected $_auto = array(
        array('status', '1', self::MODEL_BOTH),
        array('update_time', NOW_TIME, self::MODEL_BOTH),
        array('end_time', 'strtotime', self::MODEL_BOTH, 'function'),
    );
}
